﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace ceTerm
{
    public partial class AranacakToplar : Form
    {
        public AranacakToplar(string _str)
        {
            InitializeComponent();
            txtRollIds.Text = _str;

            btnKaydet.Click += new EventHandler(btnKaydet_Click);
        }

        public List<int> rolls;
        void btnKaydet_Click(object sender, EventArgs e)
        {
            rolls = new List<int>();

            foreach (string str in txtRollIds.Text.Split(Environment.NewLine.ToCharArray()))
            {
                try
                {
                    if (int.Parse(str) > 0)
                        rolls.Add(int.Parse(str));
                }
                catch
                {
                }
            }
            this.DialogResult = DialogResult.OK;
        }
    }
}